<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<%
	String path =request.getContextPath();
%>
<head>
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     <script language="javascript" type="text/javascript">
     	function goback(){
     		var url = "<%=path%>/other/goBack2Storage";
			location.href = url;
     	}

     	function exportData(){
			form1.action="<%=path%>/other/exportStorage?isList=n";
			form1.submit();
		}
     </script>
    
</head>
<body class="fullbody">
        <div class="context">
        	<div class="position">
            	<div class="tposi">当前位置： 
                    	<a href="javascript:changeMenu(1,'<%=path%>/infopub/pubmain?menuid=1');"class="linkstyle">首页</a>&nbsp;&gt;&gt;&nbsp;
                       	<a href="javascript:changeMenu(5,'');" class="linkstyle">业务查询</a>&nbsp;&gt;&gt;&nbsp;
                        <span class="curposition">入库查询</span>
                </div>
            </div>
                <div class="subpage_title">
                    <div class="title_index">
                        <img src="<%=path%>/images/common/dot03.gif" alt="" border="0" />&nbsp;入库单明细</div>
                </div>
                <div class="margin20"></div>
                <div class="subpage_bidlist">
                    <div>
                         <div  >
		                    <div class="title_index">
							    <div class="margin20"></div>
							    <div class="subpage_search" >
			                        <table border="0" cellpadding="0" cellspacing="0" class="searchtable">
			                            <tr>
			                                <td valign="middle" class="w_1">入库单号：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="searchtext" name="searchtext" type="text" value="${storageForm11.billNo}" readonly="readonly" class="searchtext" />
			                                </td>
			                                <td valign="middle" class="w_1">入库单日期：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="Text1" name="searchtext" type="text" value="${storageForm11.billDate}" readonly="readonly" class="searchtext" />
			                                </td>
			                            </tr>
			                            <tr>
			                            	<td valign="middle" class="w_1">采购公司：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="searchtext" name="searchtext" type="text" value="${storageForm11.purCorpName}" readonly="readonly" class="searchtext" />
			                                </td>
			                                <td valign="middle" class="w_1">采购部门：</td>
			                                <td valign="middle" class="w_2">
			                                   <input id="searchtext" name="searchtext" type="text" value="${storageForm11.purDeptName}" readonly="readonly" class="searchtext" />
			                                </td>
			                            </tr>
			                            <tr>
			                                <td valign="middle" class="w_1">是否采购退库：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="Text8" name="searchtext" type="text" value="${storageForm11.isUnStorage}" readonly="readonly" class="searchtext"/>
			                                </td>
			                                <td valign="middle" class="w_1">备注：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="Text8" name="searchtext" type="text" value="${storageForm11.memo}" readonly="readonly" class="searchtext" />
			                                </td>
			                            </tr>
			                            <tr><td colspan="4">&nbsp;</td></tr>
			                        </table>
                    			</div>
			                    <div class="margin20"></div>
							    <div>
							        <table class="tableCss" cellpadding="0" cellspacing="0" >
							            <tr class="titleTr">
							                <th width="160px">订单号</th>
							                <th width="220px">产品 </th>
							                <th width="160px">数量</th>
							                <th width="90px">入库日期</th>
							                <th width="170px" class="th1">累计数量</th>
							            </tr>
								        <c:if test="${storageForm11!=null && storageForm11.itemForm!=null}">
											<c:forEach items="${storageForm11.itemForm}" var="itemForm" varStatus="index">
												<c:if test="${itemForm.index%2==1}">
													<tr align="left" class="contTr-old">
												</c:if>
												<c:if test="${itemForm.index%2==0}">
													<tr align="left" class="contTr-even">
												</c:if>
													<td class="td1">${itemForm.orderNo}&nbsp;</td>
													<td class="td1">
													<span class="prodName">${itemForm.prodName}</span><br/>
														<c:if test="${itemForm.module!=null && ''!=itemForm.module}">规格：${itemForm.module}<br/></c:if>
														<c:if test="${itemForm.type!=null  && ''!=itemForm.type}">型号：${itemForm.type}<br/></c:if>
														<c:if test="${itemForm.batchNo!=null && ''!=itemForm.batchNo}">批次号：${itemForm.batchNo}<br/></c:if>
	                                                	<c:if test="${itemForm.desc!=null  && ''!=itemForm.desc}">描述：${itemForm.desc}</c:if>
													</td>
													<td class="td1">
														应收数量：<font class="words-blue">${itemForm.shouldReceiveNum}</font>${itemForm.measureName}<br/>
														实收数量：<font class="words-red-bold"><c:if test="${null!=itemForm.realReceiveNum && ''!=itemForm.realReceiveNum}">${itemForm.realReceiveNum}</c:if>&nbsp;</font><c:if test="${null!=itemForm.realReceiveNum && ''!=itemForm.realReceiveNum}">${itemForm.measureName}</c:if>
													</td>
													<td class="td1">${itemForm.storageBillDate}&nbsp;</td>
													<td class="td1">
														累计出库数量：<c:if test="${itemForm.totalStorageNum!=null && ''!=itemForm.totalStorageNum}">${itemForm.totalStorageNum}</c:if><br/>
													</td>
												</tr>
											</c:forEach>
										</c:if>
									</table>
							    </div>
							    <div class="margin20"></div>
							    <div>
							    	<form name="form1" method="post">
								        <table width="600" align="center" border="0" cellspacing="0" cellpadding="0">
								            <tr id="order_confirm" align="center">
								                <td>
								                    <input type="button" class="btnscs" value="返回" onclick="goback()" />
								                    <input type="button" class="btnscs" value="导出" onclick="exportData()" />
								                </td>
								            </tr>
								        </table>
							        </form>
							    </div>
							</div>
			                <div class="margin20"></div>
						</div>
                    </div>
                    <div class="margin8"></div>
                    <div class="margin8">
                    	<table align="left">
							<tr class="title">
								<td>
									<div id="message" class="msgcolor">${system_err_msg}</div>
								</td>
							</tr>
						</table>
					</div> 
                </div>
            </div>
        <div class="margin20"></div>
</body>
</html>
